package com.dzl.moive.utils;

import com.dzl.config.ApplicationConfiguration;

/**
 * @Description:嘟电影api接口相关常量定义
 * @author liuguanjun
 * @time:2021年10月20日 16:50:00
 */
public class MovieConstant {

    public static String environment = ApplicationConfiguration.getPropertiesByKey("environment");

    /*****
     * 聚水潭接口地址
     */
    public static final String HOST_URL = (environment == null || !"prod".equals(environment))?"http://testopen.mayiufu.com/route":"https://open.dumovie.com/route";

    /*****
     * 公共参数
     */
    public interface  COMMON_PARAM{
        /**
         * 合作方标识，嘟电影提供
         */
        public static final String appkey = (environment == null || !"prod".equals(environment))?"sjly":"sjly";
        /**
         * 合作方API私钥，嘟电影提供
         */
        public static final String privatekey = (environment == null || !"prod".equals(environment))?"DJHGGOHYAHTVNLQDJQ0BAOMIKL3WESI8":"IEX2YIRKO9RQCLEX11YLC9TP4XR87NWP";
        /**
         * 接口版本，默认1.0
         */
        public static final String v = "1.0";
    }

    /*****
   * api接口地址
   */
    public interface  API_URL{
        /**
         * 第三方平台与嘟电影做联名登录
         */
        public static final String LOGIN = "dumovie.member.get.authcode";
        /**
         * 获取购票城市列表
         */
        public static final String GET_CITY_LIST = "dumovie.city.list";
        /**
         * 获取购票城市区县列表
         */
        public static final String GET_COUNTY_LIST = "dumovie.county.list";
        /**
         * 获取购票城市热映电影列表
         */
        public static final String GET_MOVIE_HOT_LIST = "dumovie.movie.hot.list";
        /**
         * 获取即将上映电影列表
         */
        public static final String GET_MOVIE_FUTURE_LIST = "dumovie.movie.future.list";
        /**
         * 影片详细信息
         */
        public static final String GET_MOVIE_DETAIL = "dumovie.movie.detail";
        /**
         * 获取电影影院列表
         */
        public static final String GET_CINEMA_LIST = "dumovie.cinema.list";
        /**
         * 影片开放购票的影院
         */
        public static final String GET_MOVIE_PLAY_CINEMA_LIST = "dumovie.movie.play.cinema.list";
        /**
         * 影院详细信息
         */
        public static final String GET_CINEMA_DETAIL = "dumovie.cinema.detail";
        /**
         * 影院排片列表
         */
        public static final String GET_OPI_LIST = "dumovie.opi.list";
        /**
         * 排片详情
         */
        public static final String GET_OPI_DETAIL = "dumovie.opi.detail";
        /**
         * 排片座位图
         */
        public static final String GET_OPI_SEAT = "dumovie.opi.seat";
        /**
         * 生成订单
         */
        public static final String ORDER_CREATE = "dumovie.order.create";
        /**
         * 获取电影票订单详情
         */
        public static final String GET_ORDER_DETAIL = "dumovie.order.detail";
        /**
         * 获取电影票订单详情， 取票码以Json数据返回，仅适用2020-11-28以后创建的订单
         */
        public static final String GET_ORDER_DETAIL_TICKETCODE_JSON = "dumovie.order.detail.ticketcode.json";
        /**
         * 订单取消
         */
        public static final String ORDER_CANCEL = "dumovie.order.cancel";
        /**
         * 获取用户有效期内未支付的订单
         */
        public static final String GET_UNPAID_ORDER_LIST = "dumovie.order.unpaid";
        /**
         * 订单支付通知
         */
        public static final String ORDER_PAY_NOTIFY = "dumovie.order.pay.notify";
        /**
         * 充值类商户余额查询
         */
        public static final String GET_MERCHANT_ACCOUNT_INFO = "dumovie.merchant.account.info";

    }


    /*****
     * 电影类型
     */
    public interface  MOVIE_TYPE{
        public static final Integer HOT = 1;// 热映电影
        public static final Integer FATURE = 2;// 待映电影
    }

    /*****
     * 电影订单支付方式
     */
    public interface  MOVIE_ORDER_PAY_METHOD{
        public static final Integer CARD = 1;// 卡支付
        public static final Integer WEIXIN = 2;// 微信支付
        public static final Integer CARD_AND_WEIXIN = 3;// 卡支付+微信支付
    }

    /*****
     * 电影订单状态（平台的状态）
     */
    public interface  MOVIE_ORDER_PLATFORM_STATUS{
        public static final Integer TO_BE_PAID = 0;// 待支付
        public static final Integer PAID = 1;// 已付款
        public static final Integer REFUNDED = 2;// 已退款
        public static final Integer CANCEL = -1;// 超时已取消
    }


}
